<template>
	<view>
		<picker mode="date" :value="date" @change="DateChange">
			<view class="picker" v-if="date">
				{{date}}
			</view>
			<view v-else class="text-gray">请选择日期</view>
		</picker>
	</view>
</template>

<script>
	export default{
		props: {
			value: {type: String}
		},
		computed: {
			date() {
				return this.value
			}
		},
		data() {
			return {
			}
		},
		methods: {
			DateChange(e) {
				this.$emit("input", e.detail.value)
			},
		}
	}
</script>

<style>
</style>